"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = require("react");
var electron = require('electron');
var $ = require('jquery');
var Css = require('../../工具代码/Css加载');
var __1 = require('../../工具代码/颜色');
var ipcR = electron.ipcRenderer;
Css.加载(module.filename);
var R链接 = (function (_super) {
    __extends(R链接, _super);
    function R链接(props) {
        _super.call(this, props);
        this.样式 = {
            textDecoration: 'none',
            fontSize: '12px',
            left: '10px',
            right: '0',
            color: __1.default.rgb(50, 180, 50).取值
        };
        this.经过样式 = {
            color: '#ff6a00',
            textDecoration: 'none'
        };
        this.点击样式 = {
            color: '#dd2323',
            textDecoration: 'none'
        };
        this.state = { 正常样式: this.样式 };
    }
    R链接.prototype.render = function () {
        var _this = this;
        return (React.createElement("a", {style: this.state.正常样式 ? this.state.正常样式 : this.样式, onClick: function (e) {
            _this.props.单击 ? _this.props.单击(e) : {};
        }, onMouseDown: function (e) {
            _this.setState({ 正常样式: $.extend({}, _this.样式, _this.点击样式) });
        }, onMouseUp: function (e) {
            _this.setState({ 正常样式: $.extend({}, _this.样式, _this.经过样式) });
        }, onMouseLeave: function (e) {
            _this.setState({ 正常样式: _this.样式 });
        }, onMouseOver: function (e) {
            _this.setState({ 正常样式: $.extend({}, _this.样式, _this.经过样式) });
        }}, this.props.链接名));
    };
    return R链接;
}(React.Component));
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = R链接;
